package com.uniview.event;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.bus.event.RemoteApplicationEvent;

/**
 * @Author lux
 * @date: 2020/1/2
 * @desc: 自定义网关刷新远程事件,利用消息总线
 */
@Slf4j
public class RemoteRefreshRouteEvent extends RemoteApplicationEvent {
    private String message;

    private RemoteRefreshRouteEvent() {

    }

    public RemoteRefreshRouteEvent(Object source, String originService, String destinationService,String message) {
        super(source, originService, destinationService);
        this.message = message;
    }
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }


}
